package com.javacoo.xservice.base.exception;

import com.javacoo.xservice.base.support.HttpCode;

/**
 * 请求类型异常
 * <p>说明:</p>
 * <li></li>
 *
 * @author DuanYong
 * @version 1.0
 * @since 2019/7/10 16:25
 */
public class NotSupportedHttpMediaTypeException extends BaseException {
    public NotSupportedHttpMediaTypeException() {
    }

    public NotSupportedHttpMediaTypeException(Throwable ex) {
        super(ex);
    }

    public NotSupportedHttpMediaTypeException(String message) {
        super(message);
    }
    public NotSupportedHttpMediaTypeException(String code,String message) {
        super(code,message);
    }

    public NotSupportedHttpMediaTypeException(String message, Throwable ex) {
        super(message, ex);
    }

    public NotSupportedHttpMediaTypeException(String message, String... params) {
        super(format(message, (Object[]) params));
    }
    public NotSupportedHttpMediaTypeException(String code, String message, String... params) {
        super(code,format(message, (Object[]) params));
    }
    public NotSupportedHttpMediaTypeException(String message, Throwable ex, String... params) {
        super(format(message, (Object[]) params),ex);
    }
    @Override
    protected HttpCode getHttpCode() {
        return HttpCode.REQUEST_NOT_SUPPORT;
    }
}
